<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnDeliveryNoteTypeInStageTable extends AbstractMigration
{
    public function up()
    {
        $this->table("stage")
            ->addColumn('delivery_note_type', 'string', ['default' => '', 'limit' => 128, 'comment' => '交付节点类型:not_delivery_note 非交付节点, group_delivery_note 组内交付节点,upstream_delivery_note 上游交付节点'])
            ->addColumn('upstream_delivery_step_category_id', 'string', ['default' => '', 'limit' => 128, 'comment' => '上游交付环节'])
            ->save();
    }

    public function down()
    {
        $this->table('stage')
            ->removeColumn('type')
            ->save();
    }
}
